<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="../../common/common.css"/>
    <style>
        #material{padding:20px;}
        #material li{height:40px;}
        #material li a{float: right;}
    </style>
</head>
<body>
<ul id="material">
    <!--<li>-->
        <!--<span class="materialName">sdfjhisfjhdidsajhfaisad.ppt</span>-->
        <!--<a class="button" href='http://xuehaifile.oss-cn-hangzhou.aliyuncs.com/xhtest/21f81d529794468eb3d0c05daff58c93.pptx'>下载</a>-->
    <!--</li>-->
</ul>
<script src="../../assets/jquery-1.7.2.min.js"></script>
<script src="../../common/Common.js"></script>
<script>
    var attachmentList=window.parent[0].$.resourceCourse.attachmentList;
    if(attachmentList.length>0){
        var html='';
        $.each(attachmentList,function(i,data){
            html+='<li>'
                + '    <span class="materialName">'+data.filename+'</span>'
                + '    <a class="button" href='+data.url+'>下载</a>'
                + '</li>'
        });
        $("#material").html(html);
    }
</script>
</body>
</html>